package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 品牌申请记录表
 * </p>
 *
 * @author leehao
 * @since 2019-05-06
 */
@TableName("proc_brand_apply")
public class ProcBrandApply extends Model<ProcBrandApply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 店铺或供应商的目标ID
     */
    private Integer targetId;

    /**
     * 品牌名称
     */
    private String name;

    /**
     * 品牌图片
     */
    private String url;

    /**
     * 1店铺品牌  2供应商品牌
     */
    private Integer type;

    /**
     * 创建
     */
    private Date createtime;

    /**
     * 1申请待审核  2审核通过  3审核驳回
     */
    private Integer status;

    /**
     * 对应大分类id 逗号分隔字符串 可以一个品牌对应多个大分类
     */
    private String firstIds;


    @TableField(exist = false)
    private String targetName;

    @TableField(exist = false)
    private String classifyName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getFirstIds() {
        return firstIds;
    }

    public void setFirstIds(String firstIds) {
        this.firstIds = firstIds;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProcBrandApply{" +
        "id=" + id +
        ", targetId=" + targetId +
        ", name=" + name +
        ", url=" + url +
        ", type=" + type +
        ", createtime=" + createtime +
        ", status=" + status +
        ", firstIds=" + firstIds +
        "}";
    }
}
